How do I add on multiple $_POST['row'] and variables?

Posted by Ralph The Mouf on Stack Overflow See other posts from Stack Overflow or by Ralph The Mouf
Published on 2010-03-24T17:31:24Z Indexed on 2010/03/24 17:33 UTC
Read the original article Hit count: 148

Filed under:
|
|
|
|

I am struggling to find out the syntactically correct way in which to add on more variables and rows to these statements:

/* WANT TO ADD ON FIVE MORE $_POST[''] */

if(isset($_POST['check_prof']) && $_POST['check_prof'] == 'checked') {
$check_prof = "checked";
}else{
$check_prof = "unchecked";
} 

/* SAME HERE, WANT TO ADD THE OTHER FIVE IN HERE AS WELL */

$query = "UPDATE `Users` SET `check_prof` = '" . $check_prof . "' WHERE `id` = '" . $auth->id . "' LIMIT 1";
    mysql_query($query,$connection);
    $auth->refresh();
    }

© Stack Overflow or respective owner

Related posts about php

Related posts about html